cmake_minimum_required(VERSION 2.8.4)
set(CMAKE_BUILD_TYPE "RelWithDebInfo")

add_subdirectory(External/mysql-connector-c++)
add_subdirectory(External/gtest-1.6.0)
add_subdirectory(External/logog)

add_subdirectory(Internal/UtilsLib)
add_subdirectory(Internal/NetworkLib)
add_subdirectory(Internal/DatabaseLib)
##add_subdirectory(ClientFUse)
add_subdirectory(ClientLib)
add_subdirectory(StorageApp)
add_subdirectory(ServerApp)
add_subdirectory(TestApp)

add_custom_target("Tests" ALL "./runTests.sh"  DEPENDS StorageApp ServerApp TestApp WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/../bin/" COMMENT "Tests result:")
